package com.scm.entity;

/**
 * @author CHL
 * @ClassName: UserModel
 * @Description: TODO
 * @date 2022/3/8 15:11
 * @Version 1.0
 */
public class UserModel
{
    private Integer modelCode;
    private String modelName;

    public void setModelCode(Integer modelCode)
    {
        this.modelCode = modelCode;
    }

    public void setModelName(String modelName)
    {
        this.modelName = modelName;
    }

    public boolean equals(Object o)
    {
        if (o == this) {
            return true;
        }
        if (!(o instanceof UserModel)) {
            return false;
        }
        UserModel other = (UserModel)o;
        if (!other.canEqual(this)) {
            return false;
        }
        Object this$modelCode = getModelCode();Object other$modelCode = other.getModelCode();
        if (this$modelCode == null ? other$modelCode != null : !this$modelCode.equals(other$modelCode)) {
            return false;
        }
        Object this$modelName = getModelName();Object other$modelName = other.getModelName();return this$modelName == null ? other$modelName == null : this$modelName.equals(other$modelName);
    }

    protected boolean canEqual(Object other)
    {
        return other instanceof UserModel;
    }

    public int hashCode()
    {
        int PRIME = 59;int result = 1;Object $modelCode = getModelCode();result = result * 59 + ($modelCode == null ? 43 : $modelCode.hashCode());Object $modelName = getModelName();result = result * 59 + ($modelName == null ? 43 : $modelName.hashCode());return result;
    }

    public String toString()
    {
        return "UserModel(modelCode=" + getModelCode() + ", modelName=" + getModelName() + ")";
    }

    public Integer getModelCode()
    {
        return this.modelCode;
    }

    public String getModelName()
    {
        return this.modelName;
    }
}

